//
//  MSTemplateCellUtil.m
//  MSJD
//
//  Created by xiangbo on 2018/9/22.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MSTemplateCellUtil.h"

@implementation MSTemplateCellUtil

+ (CGFloat)getTemplateHeight:(NSString *)showType{
    return [((NSNumber *)MSTableCellHeightDic[showType]) floatValue];
}

+ (CGSize)getTemplateCellSize:(NSString *)showType{
    CGFloat width = [MSWidthDic[showType] floatValue] ;
    CGFloat heigth = [MSTableCellHeightDic[showType] floatValue] - 89;
    heigth  = MAX(heigth, 0);
    return CGSizeMake(width,heigth);
}

@end
